package com.zhongke.cotrun.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

import javax.validation.constraints.NotNull;

@ApiModel(value = "经纪人信息附加表")
@Data
public class AgentInfo {
	
	@ApiModelProperty(value = "id主键", example = "1")
	@TableId(type = IdType.AUTO)
	@NotNull(message = "id不能为空")
    private Long id;     
	
    @ApiModelProperty(value = "用户表主键", example = "1")
    @NotNull(message = "用户表主键不能为空")
    private Long userInfoId;
        
    @ApiModelProperty(value = "关注行业", example = "123")    
    @NotNull(message = "关注行业不能为空")
    private String researchArea;
    
    @ApiModelProperty(value = "技术领域", example = "123")    
    @NotNull(message = "技术领域不能为空")
    private String skillArea;
    
    @ApiModelProperty(value = "形象照", example = "123")    
    @NotNull(message = "形象照不能为空")
    private String imagePhoto;
    
    @ApiModelProperty(value = "认证照正面", example = "123")    
    @NotNull(message = "认证照正面不能为空")
    private String autPhotoFront;
    
    @ApiModelProperty(value = "认证照反面", example = "123")    
    @NotNull(message = "认证照反面不能为空")
    private String autPhotoBack;
    
    @ApiModelProperty(value = "申请描述", example = "123")    
    @NotNull(message = "申请描述不能为空")
    private String applyNote;
    
    @ApiModelProperty(value = "是否公开 0-否，1-是", example = "1") 
    private String showPublic;
    
    @ApiModelProperty(value = "审核状态0-待审核 1-通过 2-不通过", example = "0")    
    private String state;
        
    @ApiModelProperty(value = "备注", example = "123")   
    private String remarks;
    @ApiModelProperty(value = "创建人", example = "123")  
    private Long createBy;
    @ApiModelProperty(value = "更新人", example = "123")  
    private Long updateBy;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;    
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;    
    @ApiModelProperty(value = "删除标记（0：正常；1：回收站）", example = "0")    
    private String delFlag;
    
    @TableField(exist = false) 
    private String city;
    @TableField(exist = false) 
    private String cityLabel;
    @TableField(exist = false) 
    private String province;
    @TableField(exist = false) 
    private String provinceLabel;
    @TableField(exist = false) 
    private String skillAreaLabel;
    @TableField(exist = false) 
    private String userInfoName;
    @TableField(exist = false) 
    private String userInfoPhone;
    @TableField(exist = false) 
    private String userInfoType;
    @TableField(exist = false) 
    private Integer scoreSum;
    @TableField(exist = false) 
    private Integer scoreAvg;
}
